package org.agent.aigccore.dao;

import org.agent.aigccore.basic.enums.IotWorkOrderStatusEnum;
import org.agent.aigccore.model.bo.IotWorkOrderBO;

import java.util.List;

public interface IotWorkOrderRepository {

    IotWorkOrderBO load(Long id, boolean lock);

    List<IotWorkOrderBO> page(IotWorkOrderStatusEnum status, Long businessGroupId, int offset, int pageSize);

    List<IotWorkOrderBO> queryByName(String name);

    List<IotWorkOrderBO> queryByOutBizId(String outBizId);

    int insert(IotWorkOrderBO iotWorkOrderBO);

    int update(IotWorkOrderBO iotWorkOrderBO);

    int delete(Long id);
}